package com.mercury.pattern._14_visitor;

public class Client {
    public static void main(String[] args) {
        ObjectStructure structure = new ObjectStructure();
        structure.add(new Man());
        structure.add(new Woman());

        structure.persons.stream().forEach(person -> {
            person.accept(new Success());
            person.accept(new Fail());
        });


    }
}
